package io.coderyeah.org.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.coderyeah.org.domain.Employee;
import io.coderyeah.org.dto.EmpDTO;
import io.coderyeah.system.domain.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> getAll(EmpDTO empDTO);


    void editType(Long id, int state);

    Long getCount(EmpDTO empDTO);

    void addEmpRole(Employee employee);

    List<String> getPermissionSnByLoginInfoId(Long id);

    List<Menu> getMenus(Long id);
}
